import request from '@/utils/myrequest'
// 初始化列表
function getList(kvs) {
  return request({
    url: '/pms/PMType/GetList',
    method: 'get',
    kvs
  })
}
// 频率单位下拉框
function getFrequence(kvs) {
  return request({
    url: '/pms/PMType/GetFrequence',
    method: 'get',
    kvs
  })
}
// 状态下拉框
function getStatus(kvs) {
  return request({
    url: '/pms/PMType/GetStatus',
    method: 'get',
    kvs
  })
}
// 新增
function doAdd(kvs) {
  return request({
    url: '/pms/PMType/Add',
    method: 'POST',
    kvs
  })
}
// 编辑更新
function doUpdate(kvs) {
  return request({
    url: '/pms/PMType/Update',
    method: 'POST',
    kvs
  })
}
// 删除
function doDelete(kvs) {
  return request({
    url: '/pms/PMType/Delete',
    method: 'POST',
    kvs
  })
}
export function getPMTypeNames(kvs) {
  return request({
    url: '/pms/PMType/GetPMTypeNames',
    method: 'get',
    kvs
  })
}
export default { getList, getFrequence, getStatus, doAdd, doUpdate, doDelete }
